﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true"
    CodeBehind="CreateProfile.aspx.cs" Inherits="SharingCenter.Web.Mod.Learning.CreateProfile"
    EnableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    新建互助信息
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .categorylist
        {
            width: 100px;
        }
        .skilllist
        {
            width: 100px;
        }
        .levellist
        {
            width: 100px;
        }
        
        .st{color:green;}
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
        <Scripts>
            <asp:ScriptReference Path="~/Mod/Learning/CreateProfile.js" />
        </Scripts>
    </asp:ScriptManagerProxy>
    <myuc:GenericTabs ID="LinkListTabs1" SelectedItem="3" runat="server" Section="Learning" />
    <h2 class="bb">
        <div class="nss ns-add">
        </div>
        <span class="iconlabel">新建互助信息</span>
    </h2>
    <div class="fc">
        <div class="left wide-c bdr-r bdr-s-s">
            <asp:Wizard ID="Wizard1" runat="server" DisplaySideBar="False" Width="100%" StartNextButtonType="Link"
                StartNextButtonStyle-CssClass="button" StartNextButtonText="下一步: 选择互助技能" ActiveStepIndex="0"
                 >
                <StartNextButtonStyle CssClass="button"></StartNextButtonStyle>
               
                <StartNavigationTemplate>
                    <div class="actionarea">
                        <asp:LinkButton ID="StartNextButton" runat="server" CommandName="MoveNext" CssClass="button step1next">下一步: 选择互助时间</asp:LinkButton>
                    </div>
                </StartNavigationTemplate>
                <WizardSteps>
                    <asp:WizardStep ID="WizardStep2" runat="server" Title="Step 1" StepType="Start">
                        <div class="dialogform normal" title="其他技能">
                            <div style="width:400px;">
                                <h3 class="w5">其他技能</h3>
                                请在下面填写技能名称：
                                <input type="text" id="otherskilltext" maxlength="10" />
                                <div class="actionarea">
                                    <a class="submitbutton addotherskillbutton">确定</a>
                                </div>
                                </div>
                        </div>
                        <strong>
                            <myuc:IconSet runat="server" CssClass="nss ns-info" TextCssClass="sz-m st" Text="我想提高：" />
                        </strong>
                        <div class="formtable ctn2">
                            <table cellpadding="0" cellspacing="0" class="tbskill">
                                <tbody>
                                    <tr>
                                        <th>
                                        </th>
                                        <th class="nop textnear">
                                            技能类别
                                        </th>
                                        <th class="nop textnear">
                                            选择技能
                                        </th>
                                        <th class="nop textnear">
                                            提高到
                                        </th>
                                    </tr>
                                    <tr class="lstskill">
                                        <td>
                                            <span class="hn">1</span>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Category4" runat="server" DataSourceID="CategoryXmlDataSource"
                                                DataTextField="Name" DataValueField="Guid" CssClass="categorylist" OnPreRender="AddOtherOption" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Skill4" runat="server" CssClass="skilllist" />
                                            <ajaxctrltool:CascadingDropDown ID="CascadingDropDown4" runat="server" TargetControlID="Skill4"
                                                LoadingText="正在读取……" ParentControlID="Category4" Category="Category" ServicePath="~/Services/Services.asmx"
                                                ServiceMethod="GetSkillsListContents" UseContextKey="false" EmptyText="该类别下没有子类" PromptText="请选择类别..." PromptValue="."
                                                  >
                                            </ajaxctrltool:CascadingDropDown>
                                        </td>
                                        <td>
                                            <asp:DropDownList CssClass="levellist" ID="Level4" runat="server" DataSourceID="XmlDataSource1"
                                                DataTextField="Name" DataValueField="Value" />
                                        </td>
                                    </tr>
                                    <tr class="lstskill">
                                        <td>
                                            <span class="hn">2</span>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Category5" runat="server" DataSourceID="CategoryXmlDataSource"
                                                DataTextField="Name" DataValueField="Guid" CssClass="categorylist" OnPreRender="AddOtherOption" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Skill5" runat="server" CssClass="skilllist" />
                                            <ajaxctrltool:CascadingDropDown ID="CascadingDropDown11" runat="server" TargetControlID="Skill5"
                                                LoadingText="正在读取……" ParentControlID="Category5" Category="Category" ServicePath="~/Services/Services.asmx"
                                                ServiceMethod="GetSkillsListContents" UseContextKey="false" EmptyText="该类别下没有子类" PromptText="请选择类别..." PromptValue=".">
                                            </ajaxctrltool:CascadingDropDown>
                                        </td>
                                        <td>
                                            <asp:DropDownList CssClass="levellist" ID="Level5" runat="server" DataSourceID="XmlDataSource1"
                                                DataTextField="Name" DataValueField="Value" />
                                        </td>
                                    </tr>
                                    <tr class="lstskill">
                                        <td>
                                            <span class="hn">3</span>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Category6" runat="server" DataSourceID="CategoryXmlDataSource"
                                                DataTextField="Name" DataValueField="Guid" CssClass="categorylist" OnPreRender="AddOtherOption" />
                                            <asp:XmlDataSource ID="XmlDataSource3" runat="server" DataFile="~/App_Data/Skills.xml">
                                            </asp:XmlDataSource>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Skill6" runat="server" CssClass="skilllist" />
                                            <ajaxctrltool:CascadingDropDown ID="CascadingDropDown6" runat="server" TargetControlID="Skill6"
                                                LoadingText="正在读取……" ParentControlID="Category6" Category="Category" ServicePath="~/Services/Services.asmx"
                                                ServiceMethod="GetSkillsListContents" UseContextKey="false" EmptyText="该类别下没有子类" PromptText="请选择类别..." PromptValue=".">
                                            </ajaxctrltool:CascadingDropDown>
                                        </td>
                                        <td>
                                            <asp:DropDownList CssClass="levellist" ID="Level6" runat="server" DataSourceID="XmlDataSource1"
                                                DataTextField="Name" DataValueField="Value" />
                                            <asp:XmlDataSource ID="XmlDataSource5" runat="server" DataFile="~/App_Data/SkillLevels.xml">
                                            </asp:XmlDataSource>
                                        </td>
                                        <%--<td>
                                        <span class="addbutton" id="addskillbutton">加一个特长</span>
                                    </td>--%>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="bdr-t ctn-p-t">
                        </div>
                        <strong>
                            <myuc:IconSet runat="server" CssClass="nss ns-info" TextCssClass="sz-m st" Text="我能教授：" />
                        </strong>
                        <div class="formtable ctn2">
                            <table cellpadding="0" cellspacing="0" class="tbskill">
                                <tbody>
                                    <tr>
                                        <th>
                                        </th>
                                        <th class="nop textnear">
                                            技能类别
                                        </th>
                                        <th class="nop textnear">
                                            选择技能
                                        </th>
                                        <th class="nop textnear">
                                            技能级别
                                        </th>
                                    </tr>
                                    <tr class="lstskill">
                                        <td>
                                            <span class="hn">1</span>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Category1" runat="server" DataSourceID="CategoryXmlDataSource"
                                                DataTextField="Name" DataValueField="Guid" CssClass="categorylist" OnPreRender="AddOtherOption" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Skill1" runat="server" CssClass="skilllist" />
                                            <ajaxctrltool:CascadingDropDown ID="CascadingDropDown2" runat="server" TargetControlID="Skill1"
                                                LoadingText="正在读取……" ParentControlID="Category1" Category="Category" ServicePath="~/Services/Services.asmx"
                                                ServiceMethod="GetSkillsListContents" EmptyText="该类别下没有子类" PromptText="请选择类别..." PromptValue=".">
                                            </ajaxctrltool:CascadingDropDown>
                                        </td>
                                        <td>
                                            <asp:DropDownList CssClass="levellist" ID="Level1" runat="server" DataSourceID="XmlDataSource1"
                                                DataTextField="Name" DataValueField="Value" />
                                        </td>
                                    </tr>
                                    <tr class="lstskill">
                                        <td>
                                            <span class="hn">2</span>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Category2" runat="server" DataSourceID="CategoryXmlDataSource"
                                                DataTextField="Name" DataValueField="Guid" CssClass="categorylist" OnPreRender="AddOtherOption" />
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Skill2" runat="server" CssClass="skilllist" />
                                            <ajaxctrltool:CascadingDropDown ID="CascadingDropDown3" runat="server" TargetControlID="Skill2"
                                                LoadingText="正在读取……" ParentControlID="Category2" Category="Category" ServicePath="~/Services/Services.asmx"
                                                ServiceMethod="GetSkillsListContents" UseContextKey="false" EmptyText="该类别下没有子类" PromptText="请选择类别..." PromptValue=".">
                                            </ajaxctrltool:CascadingDropDown>
                                        </td>
                                        <td>
                                            <asp:DropDownList CssClass="levellist" ID="Level2" runat="server" DataSourceID="XmlDataSource1"
                                                DataTextField="Name" DataValueField="Value" />
                                        </td>
                                    </tr>
                                    <tr class="lstskill">
                                        <td>
                                            <span class="hn">3</span>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Category3" runat="server" DataSourceID="CategoryXmlDataSource"
                                                DataTextField="Name" DataValueField="Guid" CssClass="categorylist" OnPreRender="AddOtherOption" />
                                            <asp:XmlDataSource ID="CategoryXmlDataSource" runat="server" DataFile="~/App_Data/Skills.xml">
                                            </asp:XmlDataSource>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="Skill3" runat="server" CssClass="skilllist" />
                                            <ajaxctrltool:CascadingDropDown ID="CascadingDropDown1" runat="server" TargetControlID="Skill3"
                                                LoadingText="正在读取……" ParentControlID="Category3" Category="Category" ServicePath="~/Services/Services.asmx"
                                                ServiceMethod="GetSkillsListContents" UseContextKey="false" EmptyText="该类别下没有子类" PromptText="请选择类别..." PromptValue=".">
                                            </ajaxctrltool:CascadingDropDown>
                                        </td>
                                        <td>
                                            <asp:DropDownList CssClass="levellist" ID="Level3" runat="server" DataSourceID="XmlDataSource1"
                                                DataTextField="Name" DataValueField="Value" />
                                            <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/SkillLevels.xml">
                                            </asp:XmlDataSource>
                                        </td>
                                        <%--<td>
                                        <span class="addbutton" id="addskillbutton">加一个特长</span>
                                    </td>--%>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </asp:WizardStep>
                    <asp:WizardStep ID="WizardStep1" runat="server" Title="Step 2" StepType="Step">
                        <h3>
                            决定互助日期、时间</h3>
                        <myuc:MessageBox MessageType="Generic" runat="server" Text="你想从何时开始互助，在什么时候结束这次互助？" />
                        <div class="formtable">
                            <table>
                                <tr>
                                    <td>
                                        <b>互助开始日期:</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtStartDate" runat="server" CssClass="startdate datepicker"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>互助结束日期:</b>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtEndDate" runat="server" CssClass="enddate datepicker"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>想在周几进行互助:</b>
                                    </td>
                                    <td>
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    <asp:CheckBoxList CssClass="daysinweekcheck" ID="chkDaysInWeek" runat="server" RepeatDirection="Horizontal"
                                                        CellPadding="0" CellSpacing="0">
                                                        <asp:ListItem Text="一" Value="1" />
                                                        <asp:ListItem Text="二" Value="2" />
                                                        <asp:ListItem Text="三" Value="3" />
                                                        <asp:ListItem Text="四" Value="4" />
                                                        <asp:ListItem Text="五" Value="5" />
                                                        <asp:ListItem Text="六" Value="6" />
                                                        <asp:ListItem Text="日" Value="7" />
                                                    </asp:CheckBoxList>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="CheckBox1" runat="server" Style="visibility: hidden; width: 0;" />
                                                    <asp:CustomValidator ID="CustomValidator1" runat="server" ErrorMessage="必须选择一周中的一天。"
                                                        Display="None" EnableClientScript="true" ControlToValidate="CheckBox1" ValidateEmptyText="true"
                                                        ClientValidationFunction="CheckDaysInWeek"></asp:CustomValidator>
                                                    <cc:CustomValidatorCallOut runat="server" PopupPosition="BottomRight" ID="CustomValidatorCallOut"
                                                        TargetControlID="CustomValidator1" BehaviorID="CustomValidatorCallOut1" />
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b>选择你适合的互助时段:</b>
                                    </td>
                                    <td>
                                        <table cellpadding="0" cellspacing="0" class="nop">
                                            <tr>
                                                <td>
                                                    <asp:CheckBoxList Width="100%" CssClass="timespaninday" ID="chkTimeSpanInDay" runat="server"
                                                        RepeatDirection="Horizontal" CellPadding="0" CellSpacing="0">
                                                        <asp:ListItem Text="0点-6点" Value="0:00|5:59" />
                                                        <asp:ListItem Text="6点-12点" Value="6:00|11:59" />
                                                        <asp:ListItem Text="12点-18点" Value="12:00|17:59" />
                                                        <asp:ListItem Text="18点-24点" Value="18:00|23:59" />
                                                    </asp:CheckBoxList>
                                                </td>
                                                <td>
                                                    <%-- <em>*</em>
                                    <span>所选时段每天都相同。</span>--%>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </asp:WizardStep>
                    
                    <asp:WizardStep runat="server" StepType="Finish" Title="Step 3">
                        <h3>
                            补充信息</h3>
                        <asp:TextBox Width="400" ID="txtComment" TextMode="MultiLine" Rows="5" runat="server"></asp:TextBox>
                    </asp:WizardStep>
                    <asp:WizardStep runat="server" AllowReturn="False" StepType="Complete" Title="Step 4">
                        <h3>
                            已完成！</h3>
                        <myuc:MessageBox MessageType="Generic" runat="server" Text="成功添加一条互助信息，快去看看有没有相匹配的吧。" />
                        <div class="ctn-p-t">
                            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="submitbutton" NavigateUrl="./">确定</asp:HyperLink>
                        </div>
                    </asp:WizardStep>
                </WizardSteps>
                <FinishNavigationTemplate>
                    <%--<asp:Button ID="FinishPreviousButton" runat="server" CausesValidation="False" 
                        CommandName="MovePrevious" Text="Previous" />--%>
                    <asp:LinkButton CssClass="submitbutton" ID="FinishButton" runat="server" CommandName="MoveComplete"
                        Text="完成" />
                </FinishNavigationTemplate>
                <StepNavigationTemplate>
                    <%--<asp:Button ID="StepPreviousButton" runat="server" CausesValidation="False" CommandName="MovePrevious"
                        Text="Previous" />--%>
                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="MoveNext" CssClass="button">最后一步：补充信息</asp:LinkButton>
                </StepNavigationTemplate>
            </asp:Wizard>
        </div>
        <div class="wide-s">
            <h3 class="w7 nom">
                创建有效的互助信息</h3>
            <div class="sc bdr-nt">
                内容
            </div>
        </div>
    </div>
</asp:Content>
